import config from "@/config"
import http from "@/utils/request"

export default {
	checkin:{
		insertCheckin:{
			url: `${config.API_URL}/get/iciCheckin/insertCheckin`,
			name: "创建入驻",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		newCheckin:{
			url: `${config.API_URL}/get/iciCheckin/newCheckin`,
			name: "新增空间及入驻等信息",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		deleteCheckin:{
			url: `${config.API_URL}/get/iciCheckin/deleteCheckin`,
			name: "删除入驻",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		deleteCheckinByIds:{
			url: `${config.API_URL}/get/iciCheckin/deleteCheckinByIds`,
			name: "批量删除入驻",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		updateCheckin:{
			url: `${config.API_URL}/get/iciCheckin/updateCheckin`,
			name: "更新入驻",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		getCheckinList:{
			url: `${config.API_URL}/get/iciCheckin/getCheckinList`,
			name: "获取入驻列表",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getCheckinById:{
			url: `${config.API_URL}/get/iciCheckin/getCheckinById`,
			name: "获取入驻详情",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		}
	}
}
